package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户积分兑换记录表
 * </p>
 *
 * @author Shane
 * @since 2020-10-16
 */
@TableName("user_credit_exchange_log")
public class UserCreditExchangeLog implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 套餐id
	 */
	@TableField(value="config_id")
	private Integer configId;

	/**
	 * 金币数
	 */
	private Integer coin;

	/**
	 * 积分数
	 */
	private Integer credit;

	/**
	 * 状态，0-申请中  1-已通过   2-已驳回 
	 */
	@TableField(value = "`status`")
	private Integer status;

	/**
	 * 创建时间
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 审核人员id
	 */
	@TableField(value="audit_user_id")
	private Integer auditUserId;

	/**
	 * 拒绝理由
	 */
	private String reason;

	/**
	 * 审核时间
	 */
	@TableField(value="update_time")
	private Date updateTime;

	public UserCreditExchangeLog() {
	}

	public UserCreditExchangeLog(Integer userId, Integer configId, Integer coin, Integer credit, Integer status, Date createTime) {
		this.userId = userId;
		this.configId = configId;
		this.coin = coin;
		this.credit = credit;
		this.status = status;
		this.createTime = createTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getConfigId() {
		return configId;
	}

	public void setConfigId(Integer configId) {
		this.configId = configId;
	}

	public Integer getCoin() {
		return coin;
	}

	public void setCoin(Integer coin) {
		this.coin = coin;
	}

	public Integer getCredit() {
		return credit;
	}

	public void setCredit(Integer credit) {
		this.credit = credit;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getAuditUserId() {
		return auditUserId;
	}

	public void setAuditUserId(Integer auditUserId) {
		this.auditUserId = auditUserId;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
